CXX = g++
target = hello
OBJ = Untitled-1.o

CXXFLAGS = -c -wall

$(target):$(OBJ)
	$(CXX) -o $@ $^

%.o:%.cpp
	$(CXX) $(CXXFLAGS) $< -o $@

.PHONY:clean

clean:
	rm -f *.o $(target)